package com.mb.demo.config;/*
 @author mabin
 @DESCRIPTION 
 @create 2023-5-20
*/

import org.springframework.context.annotation.Configuration;
import org.springframework.http.converter.HttpMessageConverter;
import org.springframework.http.converter.json.Jackson2ObjectMapperBuilder;
import org.springframework.http.converter.json.MappingJackson2HttpMessageConverter;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

import java.text.SimpleDateFormat;
import java.util.List;

@Configuration
public class WebConfig implements WebMvcConfigurer {

//    @Override
//    public void configureMessageConverters(List<HttpMessageConverter<?>> converters) {
//        Jackson2ObjectMapperBuilder builder = new Jackson2ObjectMapperBuilder();
//        builder.dateFormat(new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"));
//        converters.add(new MappingJackson2HttpMessageConverter(builder.build()));
//    }
}
